package com.itheima.chapter01.circle;
import java.util.Scanner;

/*
    减肥计划改进
 */
public class demowhile2 {
    public static void main(String[] args) {
        //死循环
        lo:while(true){   //lo:标号名
            Scanner sc=new Scanner(System.in);
            System.out.println("请输入您要查看的星期数：");
            int week = sc.nextInt();
            switch (week) {
                case 0:
                    break lo;//break跳出到lo  调到指定层
                case 1:
                    System.out.println("帕梅拉");
                    break;
                case 2:
                    System.out.println("跑步");
                    break;
                case 3:
                    System.out.println("动感单车");
                    break;
                case 4:
                    System.out.println("瑜伽");
                    break;
                case 5:
                    System.out.println("游泳");
                    break;
                case 6:
                    System.out.println("慢走");
                    break;
                case 7:
                    System.out.println("有氧操");
                    break;
                default:
                    System.out.println("您输入的星期数有误！");
                    break;
            }
        }

    }
}
